package com.heima.behavior.controller;

import com.heima.behavior.dtos.ArticleBehaviorDto;
import com.heima.behavior.service.BehaviorService;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 行为控制器
 *
 * @author DiXiaoNie
 * @date 2023/01/03
 * @since 2023/1/3 16:35
 */
@RestController
@RequestMapping("/api/v1/behavior")
public class BehaviorController {
    @Autowired
    private BehaviorService behaviorService;

    @PostMapping("/load_article_behavior")
    public ResponseResult loadArticleBehavior(@RequestBody ArticleBehaviorDto dto) {
      return this.behaviorService.loadArticleBehavior(dto);
    }
}
